﻿<%@ Page Language="C#" %>

<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Web.Controller" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%var lngs = v.data("lngs") as String; %>
<%var read = v.data("read") as System.Data.DataRow; %>
<%ctx.setItem("menuid", "4"); %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wb="”http://open.weibo.com/wb”">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <title>#{pageTitle}</title>
    <meta name="Keywords" content="#{pageKeywords}" />
    <meta name="description" content="#{pageDescription}" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta http-equiv="pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
    <meta http-equiv="expires" content="0" />
    <link type="text/css" href="#{templates}css/style.css" rel="stylesheet" />
    <link type="text/css" href="#{templates}css/top.css" rel="stylesheet" />
    <script type="text/javascript" src="#{templates}js/jq1.91.js"></script>
    <link type="text/css" href="#{templates}css/about.css" rel="stylesheet" />
    <link type="text/css" href="#{templates}css/global1.css" rel="stylesheet" />
    <link type="text/css" href="#{templates}css/page.css" rel="stylesheet" />
    <link type="text/css" href="#{templates}css/service1.css" rel="stylesheet" />
    <script type="text/javascript" src="#{templates}js/jQuery1.js"></script>
</head>

<body class="newsbg">
    #{top}
    <!--/*++++++++内容++++++++*/-->
    <div class="clearfix">
        <%var typeread = v.data("typeread") as TypeList; %>
        <h2 class="gCurMenu"><%if (typeread.topid == 0){ %><%=typeread.typename %><%}else{ %><%=TypeList.findById(typeread.topid).typename %><%} %></h2>
        <div class="gMenu clearfix">
            <ul class="pngFix">
                <%var list1 = new List<TypeList>(); %>
                        <%if (typeread.upid == 0)
                          {
                              list1 = TypeList.find(" upid = " + typeread.Id + " order by pid asc,id asc").list();
                          }
                          else
                          {
                              list1 = TypeList.find(" upid = " + typeread.upid + " order by pid asc,id asc").list();
                } %>
                <%foreach(var row in list1){ %>
                <li <%if(row.Id==typeread.Id){ %>class="cur"<%} %>><a href="<%=row.glink %>"><%=row.typename %></a></li><%} %>
            </ul>
        </div>
        <div class="site">
            <div class="bgblank">
                <div class="playt clear">
                    <%var dt = YBBCommon.GetReadDt(typeread.Id, 1, 1); %>
                    <%if(dt.Count>0){ %>
                    <div class="playtl fLe"><a href="<%=dt[0].readlink %>">
                        <img src="<%=dt[0].pic %>" width="176" height="110" alt="<%=dt[0].title %>" /></a></div>
                    <div class="playtr fRi">
                        <div class="playtr-tit"><span><%=time.FormatDate(dt[0].addtime,3) %></span> <a href="#"><%=dt[0].title %></a> </div>
                        <div class="playtr-txt"><%=dt[0].summary %></div>
                        <div class="playtr-link" align="right"><a href="<%=dt[0].readlink %>">查看详细</a></div>
                    </div>
                    <%} %>
                </div>
                <%var pagelist = v.data("pagelist") as DataPage<Document>; %>
                <%if(pagelist.RecordCount>0){ %>
                <div class="playlist">
                    <ul>
                        <%foreach (var row1 in pagelist.Results) { %>
                        <li><span><%=time.FormatDate(row1.addtime,3) %></span><a href="<%=row1.readlink %>"><%=row1.title %></a></li>
                        <%} %>
                    </ul>
                </div>
                <div class="ybbcenter" style="width: 760px; text-align: center; margin-top: 20px;">#{page}</div>
                <%}else{ %>
                暂无相关新闻
               <%} %>
            </div>
        </div>
    </div>
    #{bottom}
</body>
</html>